import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:-
 * User: 666
 * Date: 2023-03-21
 * Time: 15:33
 */
public class test8 {
    public static void main(String[] args) {
        Scanner q=new Scanner(System.in);
        String str1=q.nextLine();
        String[] str2=str1.split(" ");
        String[] str3=new String[str2.length];
        for (int i = 0; i < str2.length; i++) {
           str3[i]=str2[str2.length-1-i];
        }

        for (int i = 0; i < str3.length; i++) {
            System.out.print(str3[i]+" ");
        }
    }
}
